﻿// // ******************************************************************
// //       /\ /|       @file       AppSettingVarialbeConstConfiguration.cs
// //       \ V/        @brief      await29
// //       | "")       @author     Await, 285283010@qq.com
// //       /  |
// //      /  \\        @Modified   2024-11-03 19:11
// //    *(__\_\        @Copyright  Copyright (c) , 2024-11-03 07:11 Await
// // ******************************************************************

namespace AutomaticSubtitles.Service.Infrastructure.Configuration;

public class AppSettingVarialbeConstConfiguration
{
    #region redis配置

    /// <summary>
    /// redis连接地址
    /// </summary>
    public static readonly string RedisConnection = AppSettingHelper.GetConfigValue("RedisConfig:ConnectionString");

    /// <summary>
    /// 默认前缀
    /// </summary>
    public static readonly string RedisDefaultKey = AppSettingHelper.GetConfigValue("RedisConfig:RedisDefaultKey");

    #endregion

    #region pgSql配置

    /// <summary>
    /// 数据库连接地址
    /// </summary>
    public static readonly string PgSqlConnectionString = AppSettingHelper.GetConfigValue("ConnectionStrings:SqlPath");

    public static readonly string SqlitePathConnectionString = AppSettingHelper.GetConfigValue("ConnectionStrings:SqlitePath");

    public static readonly string SqlTypeString = AppSettingHelper.GetConfigValue("ConnectionStrings:SqlType");

    #endregion

    #region 系统配置

    public static readonly string CorsPolicy = AppSettingHelper.GetConfigValue("System:Cors");

    /// <summary>
    /// 加密密钥
    /// </summary>
    public static readonly string DefaultDesEncryptKey = AppSettingHelper.GetConfigValue("System:Key");

    #endregion

    #region jwt配置

    /// <summary>
    /// 加密密钥
    /// </summary>
    public static readonly string JwtSecret = AppSettingHelper.GetConfigValue("Jwt:Secret");

    /// <summary>
    /// 过期时间
    /// </summary>
    public static readonly int JwtEffectiveHours = AppSettingHelper.GetConfigValue<int>("Jwt:EffectiveHours");

    #endregion
}